package model;

import java.io.Serializable;

import communication.Alarm;

/**
 * Alarm log class
 * @author Adrien Ledeul
 * @version 0.1
 */
public class AlarmLog implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	private Alarm alarm;
	private String shortA;
	private String longA;
	private boolean viewed;
	private boolean treated;
	
	/**
	 * Constructors
	 * 
	 */
	public AlarmLog(String shortA, String longA, Alarm alarm) 
	{
		this.shortA = shortA;
		this.longA = longA;
		this.viewed = false;
		this.treated = false;
		this.alarm = alarm;
	}
	
	/**
	 * Getters & Setters
	 * 
	 */
	public String getShortA() 
	{
		return shortA;
	}

	public String getLongA() 
	{
		return longA;
	}

	public boolean isViewed() 
	{
		return viewed;
	}

	public boolean isTreated() 
	{
		return treated;
	}

	public void setViewed(boolean viewed) 
	{
		this.viewed = viewed;
	}

	public void setTreated(boolean treated) 
	{
		this.treated = treated;
	}

	public Alarm getAlarm() 
	{
		return alarm;
	}

	public void setAlarm(Alarm alarm) 
	{
		this.alarm = alarm;
	}
	
}
